package cn.johnyu.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.*;

import pojo.User;


@RestController
@EnableAutoConfiguration
public class Application {
  @RequestMapping("/")
  public String home() {
    return "Hello";
  }
  @RequestMapping("/user")
  public User findUsers() {
	  User u=new User();
	  u.setId(23);
	  u.setUname("john2中国");
    return u;
  }

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }
}